CFLAGS = -Wall -g

all: chatserver

chatserver: chatserver.o chat_parse.o chat_socket.o
	${CC} ${CFLAGS} ${LFLAGS} -o $@ $^

chatserver.o: chatserver.c chat.h

chat_parse.o: chat_parse.c chat.h

chat_socket.o: chat_socket.c chat.h

clean:
	-rm -f chatserver 
	@-rm -f *~ 
	@-rm -f *.o
	@-rm -f *.s

.PHONY: clean
